package com.huarui.quotation.model;

import java.math.BigDecimal;
import java.util.Date;

import org.ewaf.framework.lucene.DocumentTag;
import org.ewaf.framework.model.BaseDataObject;


/**
 * 报 价
 * 
 * @author ycf
 * 
 */
@DocumentTag(value="com.huarui.quotation.lucene.QuotationDocumentBuilder")
public class Quotation extends BaseDataObject {

	private static final long serialVersionUID = 2121787913262643363L;

	/**
	 * 原厂
	 */
	public static final Integer SOURCE_OLD = 0;

	/**
	 * 合作厂中国
	 */
	public static final Integer SOURCE_COP_CN = 1;

	/**
	 * 合作厂进口
	 */
	public static final Integer SOURCE_COP_IMP = 2;

	/**
	 * 非合作厂中国
	 */
	public static final Integer SOURCE_NOT_COP_CN = 3;

	/**
	 * 非合作厂进口
	 */
	public static final Integer SOURCE_NOT_COP_IMP = 4;

	
	/**
	 * 不公开
	 */
	public static final String PUBLIC_LEVEL_NO = "2";
	/**
	 * 都公开
	 */
	public static final String PUBLIC_LEVEL_YES = "0";
	/**
	 * 对客户公司公开
	 */
	public static final String PUBLIC_LEVEL_ONLY_CUSTOMER = "1";
	
	
	/**
	 * 主键
	 */
	private Integer id;

	private Integer marketId;
	private String marketName;
	/**
     * 省份ID
     */
    private Integer provinceId;
    /**
     * 省份名称
     */
    private String province;
	/**
	 * 所属公司的ID
	 */
	private Integer companyId;

	/**
	 * 公司名称
	 */
	private String companyName;
    /**
     * 实名认证类型
     */
    private Integer realType;
    /**
     * 公司类型
     */
    private Integer companyType;
	/**
	 * 零件ID
	 */
	private Integer partId;



	/**
	 * 编码
	 */
	private String code;

	/**
	 * 来源(0=原厂，1=合作厂中国，2=合作厂进口，3=非合作厂中国，4=非合作厂进口)
	 */
	private Integer source;

	/**
	 * 零件名称
	 */
	private String name;

	/**
	 * 英文零件名称
	 */
	private String nameEn;

	/**
	 * 拼音码
	 */
	private String pyCode;

	/**
	 * 计量单位
	 */
	private String measurementUnit;

	/**
	 * 互换码
	 */
	private String swapCode;

	/**
	 * 零件分类
	 */
	private Integer partCategoryId;

	/**
	 * 一级分类名称
	 */
	private String level1Name;

	/**
	 * 二级分类名称
	 */
	private String level2Name;

	/**
	 * 一级分类ID
	 */
	private Integer level1Id;

	/**
	 * 品牌
	 */
	private String brand;

	/**
	 * 产地
	 */
	private String origin;

	/**
	 * 批次剩余数(和partproperty表中的库存数同步)
	 */
	private Integer onHand;

	/**
	 * 公开零售价(媒体价)
	 */
	private BigDecimal retailPrice;
	private BigDecimal insurancePrice;
	/**
	 * 公开级别（0 =都公开，1=对客户公司，2=不公开）
	 */
	private String publicanLevel;

	/**
	 * 创建日期
	 */
	private Date gmtCreate;

	/**
	 * 更改日期
	 */
	private Date gmtModify;

	/**
	 * 版本时间
	 */
	private Date tmsVersion;

    /**
     * 最后报价时间
     */
    private Date gmtLastQuotation;
    /**
     * 最后卖出时间 默认2000-01-01
     */
    private Date gmtLastSold;
    private String carModel;
    private String city;
    private Integer quotationQty;//报价数量
    
	public Integer getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
	}

	public String getMarketName() {
		return marketName;
	}

	public void setMarketName(String marketName) {
		this.marketName = marketName;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public Integer getRealType() {
		return realType;
	}

	public void setRealType(Integer realType) {
		this.realType = realType;
	}

	public Integer getCompanyType() {
		return companyType;
	}

	public void setCompanyType(Integer companyType) {
		this.companyType = companyType;
	}

	@Override
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public Integer getPartId() {
		return partId;
	}

	public void setPartId(Integer partId) {
		this.partId = partId;
	}


	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getPyCode() {
		return pyCode;
	}

	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}

	public String getMeasurementUnit() {
		return measurementUnit;
	}

	public void setMeasurementUnit(String measurementUnit) {
		this.measurementUnit = measurementUnit;
	}

	public String getSwapCode() {
		return swapCode;
	}

	public void setSwapCode(String swapCode) {
		this.swapCode = swapCode;
	}

	public Integer getPartCategoryId() {
		return partCategoryId;
	}

	public void setPartCategoryId(Integer partCategoryId) {
		this.partCategoryId = partCategoryId;
	}

	public String getLevel1Name() {
		return level1Name;
	}

	public void setLevel1Name(String level1Name) {
		this.level1Name = level1Name;
	}

	public String getLevel2Name() {
		return level2Name;
	}

	public void setLevel2Name(String level2Name) {
		this.level2Name = level2Name;
	}

	public Integer getLevel1Id() {
		return level1Id;
	}

	public void setLevel1Id(Integer level1Id) {
		this.level1Id = level1Id;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public Integer getOnHand() {
		return onHand;
	}

	public void setOnHand(Integer onHand) {
		this.onHand = onHand;
	}

	public BigDecimal getRetailPrice() {
		return retailPrice;
	}

	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}

	public String getPublicanLevel() {
		return publicanLevel;
	}

	public void setPublicanLevel(String publicanLevel) {
		this.publicanLevel = publicanLevel;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public Date getTmsVersion() {
		return tmsVersion;
	}

	public void setTmsVersion(Date tmsVersion) {
		this.tmsVersion = tmsVersion;
	}

	public Date getGmtLastQuotation() {
		return gmtLastQuotation;
	}

	public void setGmtLastQuotation(Date gmtLastQuotation) {
		this.gmtLastQuotation = gmtLastQuotation;
	}

	public Date getGmtLastSold() {
		return gmtLastSold;
	}

	public void setGmtLastSold(Date gmtLastSold) {
		this.gmtLastSold = gmtLastSold;
	}

	public Integer getMarketId() {
		return marketId;
	}

	public void setMarketId(Integer marketId) {
		this.marketId = marketId;
	}

	public BigDecimal getInsurancePrice() {
		return insurancePrice;
	}

	public void setInsurancePrice(BigDecimal insurancePrice) {
		this.insurancePrice = insurancePrice;
	}

	public String getCarModel() {
		return carModel;
	}

	public void setCarModel(String carModel) {
		this.carModel = carModel;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Integer getQuotationQty() {
		return quotationQty;
	}

	public void setQuotationQty(Integer quotationQty) {
		this.quotationQty = quotationQty;
	}
	
}
